package cn.shop.merchant.model.gameconfig;

import cn.shop.merchant.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-26 9:59
 * @description :
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("merchant_game_info")
public class GameInfo extends BaseEntity {

    @NotNull(message = "请选择模板")
    private Long templateId;
    @NotNull(message = "请选择二级域名")
    private Long aliasId;
    /**
     * 游戏名
     */
    @NotNull(message = "请输入游戏名")
    private String name;

    @TableField(exist = false)
    private String alias;
    @TableField(exist = false)
    private String templateName;

}

